﻿using SLAssetSystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SLUISystem
{
    public class WindowInfos:InfosBase<WindowInfo>
    {

        public WindowInfo GetWindowInfo(int id)
        {
            return infos[id];
        }

        public override void InitData(CsvData data)
        {
            int count = data.GetDataCount();
            for (int i = 0; i < count; i++)
            {
                WindowInfo info = new WindowInfo();
                info.ID = data.GetInt(i, "ID");
                info.Name = data.GetString(i, "Name");
                info.Prefab = data.GetString(i, "Prefab");

                infos.Add(info.ID, info);
            }
        }
    }
}
